package com.galaxy.user.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.galaxy.common.mybatis.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("user_base")
public class UserBase extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String userNo;
    private String openid;
    private String alipayId;
    private String username;
    private String password;
    private String salt;
    private String phone;
    private String email;
    private String avatar;
    private Integer status;
    private Integer deleted;

    @TableField(exist = false)
    private UserAccount userAccount;

    @TableField(exist = false)
    private String code;

    @TableField(exist = false)
    private Map<String, Object> token;

    @TableField(exist = false)
    private Integer gender;
}
